print dialog: Stop using gtk_container_child_get
authorMatthias Clasen <mclasen@redhat.com>
Fri, 5 Apr 2019 03:34:07 +0000 (03:34 +0000)
committerMatthias Clasen <mclasen@redhat.com>
Fri, 5 Apr 2019 12:01:43 +0000 (12:01 +0000)
The grid does not have child properties anymore.

gtk/gtkprintunixdialog.c

index c3e1d4a3b6692188877501bbc8c29841f1743e33..7f4dacc512fcbfb66fb137dbd6cc6d032517f5e1 100644 (file)
@@ -1359,17 +1359,14 @@ add_option_to_extension_point (GtkPrinterOption *option,
 static gint
 grid_rows (GtkGrid *table)
 {
-  gint t0, t1, t, h;
+  gint t0, t1, l, t, w, h;
   GList *children, *c;
 
   children = gtk_container_get_children (GTK_CONTAINER (table));
   t0 = t1 = 0;
   for (c = children; c; c = c->next)
     {
-      gtk_container_child_get (GTK_CONTAINER (table), c->data,
-                               "top-attach", &t,
-                               "height", &h,
-                               NULL);
+      gtk_grid_query_child (table, c->data, &l, &t, &w, &h);
       if (c == children)
         {
           t0 = t;